package com.cq.hd.member.api;

import com.cq.hd.common.pagination.Page;
import com.cq.hd.common.response.Result;
import com.cq.hd.member.api.dto.AdminMemberFeeBillPageDto;
import com.cq.hd.member.api.vo.AdminMemberFeeBillPageVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

import java.math.BigDecimal;

@FeignClient(value = "hd-o2o-member-service", contextId = "member-fee-bill-api")
public interface TbMemberFeeBillApi {

    // 后台管理端分页列表
    @GetMapping("/member/memberFeeBill/pageAdminMemberFeeBill")
    Result<Page<AdminMemberFeeBillPageVo>> pageAdminMemberFeeBill(@SpringQueryMap AdminMemberFeeBillPageDto adminMemberFeeBillPageDto);

    // 清空3天前的待支付的会员续费记录
    @PostMapping("/member/memberFeeBill/removeWaitPayJob")
    Result<Boolean> removeWaitPayJob();

    // 查询累计成交金额
    @GetMapping("/member/memberFeeBill/getTotalAmt")
    Result<BigDecimal> getTotalAmt();
}
